package cn.lau.pp.module.vr.controller.admin.order.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;

@Schema(description = "管理后台 - vr订单新增/修改 Request VO")
@Data
public class OrderSaveReqVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "27883")
    private Integer id;

    @Schema(description = "订单编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "订单编码不能为空")
    private String orderCode;

    @Schema(description = "游戏id", requiredMode = Schema.RequiredMode.REQUIRED, example = "18056")
    @NotNull(message = "游戏id不能为空")
    private Integer gameId;

    @Schema(description = "设备id", requiredMode = Schema.RequiredMode.REQUIRED, example = "5458")
    @NotNull(message = "设备id不能为空")
    private Integer deviceId;

    @Schema(description = "游戏时长（分钟）", requiredMode = Schema.RequiredMode.REQUIRED, example = "60")
    @NotNull(message = "游戏时长（分钟）不能为空")
    private Integer playTime;

    @Schema(description = "订单金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "38.6")
    @NotNull(message = "订单金额不能为空")
    private BigDecimal amount;

}